<div class="m_right">
            <p></p>
            <div class="mem_tit">账户安全</div>
            <div class="m_des">
                <form method="post" action="{$act}" id="form">
                <table border="0" style="width:880px;"  cellspacing="0" cellpadding="0">
                  <tr height="45">
                    <td width="80" align="right">原密码 &nbsp; &nbsp;</td>
                    <td><input type="text" name="oldpassword" value="" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                  </tr>
                  <tr height="45">
                    <td align="right">新密码 &nbsp; &nbsp;</td>
                    <td><input type="text" name="newpassword" value="" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                  </tr>
                  <tr height="45">
                    <td align="right">确认密码 &nbsp; &nbsp;</td>
                    <td><input type="text" name="newpassword1" value="" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                  </tr>
                  <tr height="50">
                    <td>&nbsp;</td>
                    <td><input type="submit" value="确认修改" style="height: 30px;width: 100px;text-align: center;background-color: green;line-height: 26px;outline: none;border-radius: 8px;color: #fff;font-size: 14px"/></td>
                  </tr>
                </table>
                </form>
            </div>

          <script type="text/javascript">//
            $('#form').on('submit',function(){
              $.ajax({
                type: "POST",
                  url: $('#form').attr('action'),
                  data: $('#form').serialize(),
                  dataType:'json',
                  success:function(data){
                  // console.log(data);
                    if(data.code=='001'){
                      alert(data.msg);
                    }else if(data.code=='666'){
                      window.location="UserMessage.html";
                       // header("location:UserMessage");
                    }
                  }

              });
              return false;
            });
          </script>
            
        </div>